
<div class="layui-row" id="nowdiv">
	<#include "/apps/service/monitor/include/now.html">
</div>

<#include "/apps/service/monitor/include/aitable.html">
<script>
	layui.use('laydate', function() {
		var laydate = layui.laydate;
		//日期时间范围选择
		laydate.render({ 
		  elem: '#airangdate'
		  ,type: 'datetime'
		  <#if begin?? && end?? && begin!='' && end !=''>,value: '${begin} ~ ${end}'</#if>
		  ,range: '~' //或 range: '~' 来自定义分割字符
		  ,trigger: 'click' //自动弹出控件的事件，采用click弹出
		  ,done: function(value, date, endDate){
			  	var begin = value.split(" ~ ")[0];
			  	var end = value.split(" ~ ")[1];
			  	if (begin!=null && begin!='' && begin!='undefined' && end!=null && end!='' && end!='undefined') {
				  	window.location.href = "/apps/monitor/view/ai<#if dateview?? && dateview=='1'>/view</#if>.html?actid=<#if actid?? && actid!=''>${actid}</#if>&begin="+begin+"&end="+end;
			  	}
			  }
		});

	});
	 $('#actid').change(function(){
	      var data= $(this).val();
	      $("#nowa").attr("href","/apps/monitor/view/ai<#if dateview?? && dateview=='1'>/view</#if>.html?actid="+data+"<#if begin?? && begin!=''>&begin=${begin}</#if><#if end?? && end!=''>&end=${end}</#if>");
	      window.location.href="/apps/monitor/view/ai<#if dateview?? && dateview=='1'>/view</#if>.html?actid="+data+"<#if begin?? && begin!=''>&begin=${begin}</#if><#if end?? && end!=''>&end=${end}</#if>";
	    });
</script>